package com.zhongge.binarytreeOJ.question;

/**
 * @ClassName TestMyBinTree
 * @Description TODO
 * @Author zhongge
 * @Date 2025/9/2 18:26
 * @Version 1.0
 */
@SuppressWarnings("all")
public class TestMyBinTree {
    public static void main(String[] args) {
        MyBinTree tree = new MyBinTree();
        MyBinTree.TreeNode root = tree.createOfPreOrder("abc##de#g##f###");
        System.out.print("中序遍历：");
        tree.inOrder(root);
        System.out.println();

        System.out.print("层序遍历：");
        tree.levelOrder(root);
    }
}
